package tw.com.softleader.fire.setting.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import tw.com.softleader.fire.common.entity.GenericEntity;

@Entity
@Table(name = "SET_ADDR_ZIP")
public class AddrZipEntity extends GenericEntity {
	
	@Column(name="ADDR_CODE", length=10, unique=true)
	private String addrCode;
	
	@Column(name="ADDR_NAME", length=100)
	private String addrName;

	@Override
	public String toString() {
		return "AddrZipEntity [addrCode=" + addrCode + ", addrName=" + addrName
				+ ", id=" + id + ", createTime=" + createTime + ", creator="
				+ creator + ", modifiedTime=" + modifiedTime + ", modifier="
				+ modifier + "]";
	}

	public String getAddrCode() {
		return addrCode;
	}

	public void setAddrCode(String addrCode) {
		this.addrCode = addrCode;
	}

	public String getAddrName() {
		return addrName;
	}

	public void setAddrName(String addrName) {
		this.addrName = addrName;
	}

}
